/**
 * 更改页面title
 */

import { useEffect } from 'react'

export const useTitle = (title: string) => {
  useEffect(() => {
    document.title = title
  }, []);
};
